package com.aaa.order.service.impl;

import com.aaa.entity.LoginLog;
import com.aaa.order.dao.UserLoginLogDao;
import com.aaa.order.service.UserLoginLogService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/3/3 16:36
 */
@Service
public class UserLoginLogServiceImpl implements UserLoginLogService {
    @Autowired
    private UserLoginLogDao userLoginLogDao;
    @Override
    public Result selectLogin() {
        List<LoginLog> log=   userLoginLogDao.selectClientLogin();
      List<LoginLog> logs= userLoginLogDao.selectUserLogin();
        ArrayList<List> list = new ArrayList<>();
        list.add(logs);
        list.add(log);
        return new Result(2000,"查询成功",list);
    }
}
